class EpdemciForm {
  late String form_id;
  late List<EpidemicItem> form;

  EpdemciForm(Map<String, dynamic> json) {
    this.form_id = json["form_id"] as String;
    this.form =
        (json["form"] as List<dynamic>).map((e) => EpidemicItem(e)).toList();
  }

  Map<String, dynamic> get json {
    return Map<String, dynamic>()
      ..["form_id"] = form_id
      ..["form"] = form.map((e) => e.json).toList();
  }
}

class EpidemicItem {
  late String id;
  late String name;
  late String placeholder;
  late EpidemicItemValidate validate;
  late String type;
  late String key;
  late String? value;
  late List<String> opt;

  EpidemicItem(Map<String, dynamic> json) {
    this.id = json["id"] as String;
    this.name = json["name"] as String;
    this.placeholder = json["placeholder"] as String;
    this.validate = EpidemicItemValidate(json["validate"]);
    this.type = json["type"] as String;
    this.key = json["key"] as String;
    this.value = json["value"] as String?;
    this.opt = (json["opt"] as List<dynamic>).map((e) => "$e").toList();
  }

  Map<String, dynamic> get json {
    var result = Map<String, dynamic>();
    result["id"] = this.id;
    result["name"] = this.name;
    result["placeholder"] = this.placeholder;
    result["validate"] = this.validate.json;
    result["type"] = this.type;
    result["key"] = this.key;
    result["value"] = this.value;
    result["opt"] = this.opt;
    return result;
  }
}

class EpidemicItemValidate {
  late String required;
  late String? length;

  EpidemicItemValidate(Map<String, dynamic> json) {
    this.required = json["required"] as String;
    this.length = json["length"] as String?;
  }

  Map<String, dynamic> get json {
    var result = Map<String, dynamic>();
    result["required"] = this.required;
    result["length"] = this.length;
    return result;
  }
}

class EpidemicRecordItem {
  late String id;
  late String date;
  late String status;
  late String temperature;

  EpidemicRecordItem(Map<String, dynamic> json) {
    this.id = "${json["id"]}";
    this.date = "${json["date"]}";
    this.status = "${json["status"]}";
    this.temperature = "${json["temperature"]}";
  }

  Map<String, dynamic> get json {
    return Map<String, dynamic>()
      ..["id"] = this.id
      ..["date"] = this.date
      ..["status"] = this.status
      ..["temperature"] = this.temperature;
  }
}

class EpidemicData {
  late EpidemicDataSubItem isReported;
  late EpidemicDataSubItem nucleicAcidTest;
  late EpidemicDataSubItem covidVaccine;
  late EpidemicDataSubItem epidemic;

  EpidemicData(Map<String, dynamic> json) {
    isReported = EpidemicDataSubItem(json["is_reported"]);
    nucleicAcidTest = EpidemicDataSubItem(json["nucleic_acid_test"]);
    covidVaccine = EpidemicDataSubItem(json["covid_vaccine"]);
    epidemic = EpidemicDataSubItem(json["epidemic"]);
  }

  Map<String, dynamic> get json {
    return Map<String, dynamic>()
      ..["is_reported"] = isReported.json
      ..["nucleic_acid_test"] = nucleicAcidTest.json
      ..["covid_vaccine"] = covidVaccine.json
      ..["epidemic"] = epidemic.json;
  }
}

class EpidemicDataSubItem {
  late String status;
  late String message;

  EpidemicDataSubItem(Map<String, dynamic> json) {
    status = "${json["status"]}";
    message = "${json["message"]}";
  }

  Map<String, dynamic> get json {
    return Map<String, dynamic>()
      ..["status"] = status
      ..["message"] = message;
  }
}

class EpidemicQRCode {
  late String qrCode;
  late String message;
  late String status;
  EpidemicQRCode(Map<String, dynamic> json) {
    qrCode = "${json["qrcode"]}";
    message = "${json["message"]}";
    status = "${json["status"]}";
  }
}

class EpidemicHSData {
  late String hsjcjg;
  late String hsjcsj;
  late String hsjcjgmc;
  EpidemicHSData(Map<String, dynamic> json) {
    hsjcjg = "${json["hsjcjg"]}";
    hsjcsj = "${json["hsjcsj"]}";
    hsjcjgmc = "${json["hsjcjgmc"]}";
  }
}

class EpidemicYMData {
  late String sfjzwc;
  late String jzjc;
  EpidemicYMData(Map<String, dynamic> json) {
    sfjzwc = "${json["sfjzwc"]}";
    jzjc = "${json["jzjc"]}";
  }
}
